<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title>用户列表</title>
	<style>.size{width:180px;height:200px;}</style>
	<link href="/study/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="/study/Public/bootstrap/css/bootstrap-theme.min.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="/study/Public/bootstrap/js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/study/Public/bootstrap/js/bootstrap.min.js"></script>
	
</head>
<body>
<h1>用户管理页面</h1>
<table class='table table-bordered'>
<tr>
<th>Logo</th>
<th>社团名称</th>
<th>所在团队</th>
<th>简介</th>
<th>成立日期</th>
<th>负责人学号</th>
<th>状态</th>
<th>操作</th>
</tr>
<?php if(is_array($groups)): $i = 0; $__LIST__ = $groups;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
	<th><img src="/study/Public/Uploads/photo/<?php echo ($vo["photo"]); ?>" alt="头像不存在" class="size"></th>
	<!-- /study/Public  表示public目录-->
	<th><?php echo ($vo["groupname"]); ?></th>
	<th><?php echo ($vo["team"]); ?></th>
	<th><?php echo ($vo["intro"]); ?></th>
	<th><?php echo ($vo["regdate"]); ?></th>
	<th><?php echo ($vo["leader"]); ?></th>
	<th><?php if($vo["state"] == 0): ?>普通社团
		<?php else: ?>禁言<?php endif; ?></th>
		<th><!-- <a href="delgroup?id=<?php echo ($vo["gid"]); ?>">删除</a><br>
	<a href="updategroup?id=<?php echo ($vo["gid"]); ?>">修改</a> -->
	<div class="btn-group">
                <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                   操作
                 <span class="caret"></span>
                  </a>
	             <ul class="dropdown-menu pull-right">
                 <li><a href="updategroup?id=<?php echo ($vo["gid"]); ?>"><i class="icon-envelope"></i>修改</a></li>
                 <li><a href="delgroup?id=<?php echo ($vo["gid"]); ?>"><i class="icon-edit"></i> 删除</a></li>
                 <li>
                    <?php if($vo["state"] == 0): ?><a href="setgjy?id=<?php echo ($vo["gid"]); ?>"><i class="icon-trash">禁言</i></a>
                    <?php else: ?><a href="delgjy?id=<?php echo ($vo["gid"]); ?>"><i class="icon-trash">解禁</i></a><?php endif; ?>
                     </a></li>
                     <li><a href="addguser?id=<?php echo ($vo["gid"]); ?>"><i class="icon-edit"></i>添加社团成员</a></li>
                     <li><a href="memberslist?id=<?php echo ($vo["gid"]); ?>"><i class="icon-edit"></i>显示社团成员</a></li>
 </ul>

	</th>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>
<!-- <div class="pagination">
<?php echo ($page); ?>
</div> -->
<!-- '/study:'    /study <br>
'/study/index.php:'    /study/index.php <br>
'/study/index.php/Admin/Index:'    /study/index.php/Admin/Index <br> -->
</body>
</html>